<?php

namespace App\Module\User\Controller;

use App\Common\Controller\AbstractController;
use App\Module\User\Service\TaskService;
use Hyperf\Di\Annotation\Inject;

class TaskController extends AbstractController{

    /**
     * @Inject()
     * @var TaskService $taskService
     */
    private $taskService;

    public function sign(){
        return $this->response->json($this->taskService->sign());
    }

    public function miniShare(int $id){
        return $this->response->json($this->taskService->miniShare($id));
    }

    public function activityShare(int $sid,int $aid){
        return $this->response->json($this->taskService->activityShare($sid,$aid));
    }
}